# 变量类型
# 标量: 整型, 浮点型, 字符串, 布尔型
# 变量类型测试 type()

# 整型 int
num = 100;
print(num);

# 浮点型 fload
num = 2.202;
print(num);

# 字符串 str
str = 'hello world';
print(str);

# 布尔型 bool
bl = True;
bl = False;
print(bl);

# 列表 (数组 苦力级角色) list
array = [1, 2, 3, 4];
array[0] =100;
print(array);

# 元组 (不可更改) tuple
tl = (1, 3, 5, 7, 9);
print(tl);

# 集合 (不可更改, 值不允许重复) set
st = {1, 3, 3, 5, 7, 9};
print(st);

# 字典 (值可更改, json) dict
json = {
    "name" : "user1",
    "age" : 18
}
print(json)
for key in json:
    print(key, json[key]);

# 对象 classobj
class Person:
    def say(self):
        print("my name is user1");
user = Person();
user.say();

# None (NULL) NoneType
val = None;
print(val);
